//
//  WorkHomeVC.m
//  XLDoctor
//
//  Created by longma on 2018/7/27.
//  Copyright © 2018年 XLH. All rights reserved.
//mj新版本下载

#import "UpdateController.h"
@interface UpdateController ()
@property (weak, nonatomic) IBOutlet UILabel *versionLabel;
@property (weak, nonatomic) IBOutlet UILabel *updateDescriptionLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end

@implementation UpdateController

- (void)viewDidLoad {
    [super viewDidLoad];
   
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
     
}

- (void)mj_setUI{
    [super mj_setUI];
    
    self.mj_titleLocalizable = @"New Version Download";
    self.versionLabel.text = [@"Version " stringByAppendingString:self.updateData[@"versionName"]];
    NSString *message = self.updateData[@"updateDescription"];
    self.updateDescriptionLabel.text = message;
    
}

#pragma mark - 方法
- (void)requestData{
    
}
- (IBAction)handleUpdateSecurityButtonEvent:(UIButton *)sender {
    
    [UIApplication.sharedApplication openURL:[NSURL URLWithString:self.updateData[@"apkUrl"]] options:@{} completionHandler:^(BOOL success) {
        
    }];
}
#pragma mark - 代理

#pragma mark - 懒加载

@end
